// 项目统计数据接口
export interface ProjectStats {
  taskCompletion: {
    completed: number;
    total: number;
    byStatus: Record<string, number>;
  };
  memberActivity: {
    userId: string;
    name: string;
    tasksCompleted: number;
    commentsAdded: number;
    lastActive: Date;
  }[];
  timeTracking: {
    estimatedHours: number;
    actualHours: number;
    remainingHours: number;
  };
  timeline: {
    date: string;
    completedTasks: number;
    createdTasks: number;
  }[];
}

// 图表数据接口
export interface ChartData {
  labels: string[];
  datasets: {
    label: string;
    data: number[];
    backgroundColor?: string | string[];
    borderColor?: string | string[];
    borderWidth?: number;
    fill?: boolean;
  }[];
}

// 数据过滤选项
export interface StatsFilter {
  dateRange: 'day' | 'week' | 'month' | 'quarter' | 'year' | 'custom';
  startDate?: Date;
  endDate?: Date;
  members?: string[]; // 用户ID列表
  taskTypes?: string[];
  statuses?: string[];
}

// 导出格式
export type ExportFormat = 'csv' | 'pdf' | 'excel' | 'image'; 